<?php include("include/header.php"); ?>
<style>
.routelayout{width:990px;
margin-top:20px;}
.routelayout img{ width:990px;}
</style>
<div class="routelayout">
<?php $type=$_GET['type'];
$id =$_GET['id']; 
include('include/db.php');
$sql = mysqli_query($link, "select * from on_projects where id= $id");
$row =mysqli_fetch_array($sql);
if($type = "map" && $row['route_map'] == ''){?>
<h1>rout map not available</h1>
<?php }
else if($type = "layout" && $row['layout_map'] == ''){ ?>
<h1>layout is not available</h1>
<?php }else{ ?>
<img src="maps/<?php if($type == "map"){echo $row['route_map']; }else{ echo $row['layout_map']; } ?>" >
<?php } ?>
</div>

				
<?php include("include/footer.php"); ?>